<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>软工 问卷调查系统后台管理</title>
    <link rel="stylesheet" href="layui/css/layui.css">
</head>

<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black">软工问卷</div>
            <!-- 头部区域（可配合layui 已有的水平导航） -->
            <ul class="layui-nav layui-layout-left">
                <!-- 移动端显示 -->
                <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                    <i class="layui-icon layui-icon-spread-left"></i>
                </li>

                <li class="layui-nav-item layui-hide-xs"><a href="">个人问卷</a></li>
                <li class="layui-nav-item layui-hide-xs"><a href="">用户管理</a></li>
                <li class="layui-nav-item">
                    <a href="javascript:;">帮助与反馈</a>
                    <dl class="layui-nav-child">
                        <dd><a href="https://www.baidu.com/" target="_blank">帮助中心</a></dd>
                        <dd><a href="https://www.layui.com/doc/" target="_blank">开发文档</a></dd>
                        <dd><a href="javascript:;" onclick="service()">联系客服</a></dd>
                    </dl>
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                    <a
                        href="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2458182798,3467321568&fm=26&gp=0.jpg">
                        <img src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2458182798,3467321568&fm=26&gp=0.jpg"
                            class="layui-nav-img">
                        管理员大大
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="/unfinished">个人信息</a></dd>
                        <dd><a href="/unfinished">设置</a></dd>
                        <dd><a href="javascript:layout()">注销</a></dd>
                    </dl>
                </li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <button class="layui-btn layui-btn-lg layui-btn-normal"
                        style="margin-left: 20px; margin-top: 15px; width: 144px; height: 40px;"
                        onclick="newQuestionnaire()">新建问卷 + </button>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="/unfinished" style="margin-top: 10px;">个人问卷</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="/unfinished">更多功能开发中...</a>
                    </li>
                </ul>
            </div>
        </div>

        <div class="layui-body">
            <!-- 内容主体区域 -->
            <div style="padding: 15px;">
                <table id="demo" lay-filter="test"></table>

            </div>
        </div>
        <div class="layui-footer">
            <!-- 底部固定区域 -->
            底部固定区域
        </div>
    </div>
    
    <script type="text/javascript">
        var layout = function logout() {
            axios({
                method: 'post',
                url: '/logout'
            }).then(function (response) {
                // axios工具下，服务器真正返回的数据在返回对象的data中
                let res = response.data;
                if (res.code === 200) {
                    window.location.href = '/';
                }
            }).catch((err) => {

            });
        }
    </script>
    <script src="layui/layui.js"></script>

    <script src="JS/index.js"></script>
    <script src="https://cdn.bootcss.com/axios/0.18.0/axios.min.js"></script>
    <script src="JS/index.js"></script>

</body>



</html>